package com.youkeyi.ddy.cloud.common.api.basic.pub.user;

import com.youkeyi.ddy.cloud.common.api.basic.pub.user.dto.PublicUserListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.user.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * PublicUserCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/21 4:43 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/public/user/fallback")
public class PublicUserCloudServiceFallback implements PublicUserCloudService {

    @Override
    public PublicUserListCloudDto query(PublicUserQueryCloudParam param) {
        return new PublicUserListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(PublicUserCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(PublicUserUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent updatePassword(PublicUserUpdatePasswordCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(PublicUserDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent updateAvatar(PublicUserUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent updateNickName(PublicUserUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
